package diva.pap.merchant;

import static diva.lib.lang.Lang.info;

import diva.pap.R;
import diva.pap.transactions.TransactionRowBase;

public class MerchantTransactionRow extends TransactionRowBase {
  @Override
  protected void load() {
    super.load();
    MerchantTransactionRowData row = new MerchantTransactionRowData(request.getRow(position));
    info(row.getProductId());
    getTextView(R.id.merchant_transcation_row_affiliate_name).setText(row.getAffiliateName());
    getTextView(R.id.merchant_transcation_row_campaign_name).setText(row.getCampaignName());
    getTextView(R.id.merchant_transcation_row_commision).setText(row.getCommision());
    getTextView(R.id.merchant_transcation_row_created).setText(row.getCreated());
    getTextView(R.id.merchant_transcation_row_order_id).setText(row.getOrderId());
    getTextView(R.id.merchant_transcation_row_product_id).setText(row.getProductId());
    getImageView(R.id.merchant_transcation_row_status).setImageResource(
        getStatusImage(row.getStatus()));
  }

}
